import { createRouter, createWebHashHistory,createWebHistory } from 'vue-router'
const routes = [
    {
        path: '/',
        redirect: "/myInfo",
    },
    {
        path: '/home',
        name: "Home",
        meta: {
            title: "首页",
            tabShow: true
        },
        component: () => import('../views/home/index.vue')
  },
  {
    path: '/mySwimTicket',
    name: "mySwimTicket",
    meta: {
        title: "我的泳票",
        tabShow: true
    },
    component: () => import('../views/my/mySwimTicket.vue')
  },
  {
  path: '/myInfo',
  name: "myInfo",
  meta: {
      title: "我的个人信息",
      tabShow: true
  },
  component: () => import('../views/my/myInfo/index.vue')
  },
  {
    path: '/realName',
    name: "realName",
    meta: {
        title: "真实姓名",
        tabShow: true
    },
    component: () => import('../views/my/myInfo/realName.vue')
    },{
      path: '/age',
      name: "age",
      meta: {
          title: "年龄",
          tabShow: true
      },
      component: () => import('../views/my/myInfo/age.vue')
      },{
        path: '/sex',
        name: "sex",
        meta: {
            title: "性别",
            tabShow: true
        },
        component: () => import('../views/my/myInfo/sex.vue')
        },
  {
    path: '/userFacephoto',
    name: "userFacephoto",
    meta: {
        title: "人脸识别",
        tabShow: true
    },
    component: () => import('../views/my/myInfo/userFacephoto.vue')
  }
]
const router = createRouter({
    history: createWebHistory(),  // createWebHistory,createWebHashHistory
    routes
})

export default router;


